#include <wx/wx.h>
#include <algorithm>
#include "dam.h"
#include "solver.h"

class BoardPanel : public wxPanel
{
    public:
    BoardPanel(wxWindow*parent,int id,int boardsize,int gametype,int **arr,int greedytype,int greedytype1,int greedytype2,int gamespeed);
//               int gametype,int boardsize);

    Solver *solver;

    int GetId(int x,int y,int bs);
    wxPoint GetPoint(int id,int bs);
    void Refresher();

    wxPoint befpoint;
    bool isplayerturn;
    bool IsWhite(int type);
    int **arr;
    int gametype;
    int boardsize;
    Dam **arrdam;

    int greedytype;

    int greedytype1;
    int greedytype2;
    int gamespeed;

    void StartAIVSAI();
    static const int ID_PLAYER_VS_AI;
    static const int ID_AI_VS_AI;
    static const int ID_GREEDY_BY_FRONT;
    static const int ID_GREEDY_BY_BACK;
    static const int ID_SLOW;
    static const int ID_MEDIUM;
    static const int ID_FAST;
    void OnClickButton(wxCommandEvent&event);

};

